package com.interface1;
class UserTO{
	int id;
	String name;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
interface User{
	public void addUser(UserTO uto);
}
class UserImpl implements User{

	@Override
	public void addUser(UserTO uto) {
		System.out.println("addUser()");
		
		
	}
	
}
interface UserService{
	public void addUserType(UserTO uto);
}
class UserServiceImpl implements UserService{
User usr=new UserImpl();
	@Override
	public void addUserType(UserTO uto) {
		usr.addUser(uto);
		
	}
	
}
public class TestClient {
public static void main(String[] args) {
	UserTO uto=new UserTO();
	uto.setId(101);
	uto.setName("deepak");
	UserServiceImpl usi=new UserServiceImpl();
	usi.addUserType(uto);
}
}
